#!/bin/sh

function chk(){
    if [ $? != 0 ]
    then
        echo " $1 failed."
        wget --quiet "http://bmailsms.sa.nhnsystem.com:20080/message/sendSms.action?recvNum=01099289272&sendNum=01054775677&sendMsg=${1}_failed"
        rm sendSms.action*
        exit 2
    fi
}

function send_sms(){
	wget --quiet "http://bmailsms.sa.nhnsystem.com:20080/message/sendSms.action?recvNum=01099289272&sendNum=01054775677&sendMsg=${1}_failed"
	rm sendSms.action*
}
